package DoulblyLinked;

//双向链表
public class Node {
    int data;   //数据
    Node prev; //前指针
    Node next; //后指针

    public Node(int data, Node prev, Node next) {
        this.data = data;
        this.prev = prev;
        this.next = next;
    }

    public Node(int data) {
        this.data = data;
        prev = null;
        next = null;
    }
}
